#ifndef REGISTER_H
#define REGISTER_H

#include <QWidget>
#include <QMessageBox>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QDebug>
#include <QSqlQueryModel>
#include <QSqlError>

namespace Ui {
class Register;
}

class Register : public QWidget
{
    Q_OBJECT

public:
    explicit Register(QWidget *parent = nullptr);
    ~Register();

private slots:
    void on_pushButton_clicked();
    void on_pushButton_2_clicked();
    void connectDB();

signals:
    void TomainSignal();
private:
    Ui::Register *ui;
    QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
};

#endif // REGISTER_H
